package cn.zhouchao.system.mapper;

import cn.zhouchao.basic.mapper.BaseMapper;
import cn.zhouchao.system.domain.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface PermissionMapper extends BaseMapper<Permission> {
    Permission findBySn(String permissionSn);

    void addMiddle(@Param("roleId") Long id, @Param("permissions") List<Long> permissions);

    void deleteMiddle(Long roleId);

    List<String> findByLonginfoId(Long longinfoId);
}
